﻿#include "mycomboxdelegate.h"

MyComboxDelegate::MyComboxDelegate(QObject *parent)
{

}

MyComboxDelegate::~MyComboxDelegate()
{

}

void MyComboxDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
    editor->setGeometry(option.rect);
}

QSize MyComboxDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
{
    QSize size = QStyledItemDelegate::sizeHint(option, index);
    size.setHeight(70);
    return size;
}
